﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QResizeEvent>
#include <QPushButton>
#include <QVBoxLayout>
#include "window-basic-chnswitch.h"

enum UI_MODEL_TYPE
{
  UI_MODEL_SWITCH_CTRL = 1, //切换控制区
  UI_MODEL_PRECHN = 2,      //预置通道区
  UI_MODEL_UNKONW,
};

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void init_ctrl();
    void load_style();
    void init_data();
protected:
    void switch_ui(enum UI_MODEL_TYPE model);
protected:
    void resizeEvent(QResizeEvent *event);
private:
    enum UI_MODEL_TYPE e_module_;
    QPushButton* btn_ui_switch_ctrl_;
    QPushButton* btn_ui_prechn_;
    QVBoxLayout* vbox_ui_model_;
    WindowBasicChnSwitch* ptr_ui_chn_switch_;
};

#endif // MAINWINDOW_H
